package com.yinxin.reflection.InvocationProxy.cjlib;

import com.yinxin.reflection.InvocationProxy.Jdk.UserController;
import com.yinxin.reflection.InvocationProxy.Jdk.UserDao;
import com.yinxin.reflection.InvocationProxy.Jdk.UserDaoImpl;

/**
 * @author yinxin
 * @version 1.0
 * @Description:
 * @date 2022/8/1816:53
 */
public class MybatisApplication {
    /*public static void main(String[] args) throws  Exception{
        UserDaoImpl userDao = new UserDaoImpl();
        UserDao proxy = (UserDao) new CGLIBProxy(userDao).createProxy();
        proxy.getMoney();
    }*/

    public static void main(String[] args) {
        UserController userController = new UserController();
        UserController proxy = (UserController) new CGLIBProxy(userController).createProxy();
        proxy.say();
    }
}
